package com.online.findagentserver.slave1;

import com.online.findagentserver.domain.Session;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;

/**
 * Created by littleheng on 2018/4/27
 */
@Mapper
public interface Session1Mapper {

    /**
     * 新增会话
     *
     * @param session
     * @return
     */
    @Insert("INSERT INTO ols_session (start_time,company_id,open_id,customer_name) " +
            "VALUES (#{startTime},#{companyId},#{openId},#{customerName})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insertSSc(Session session);
}
